package com.uzykj.modules.blog.entity;

import com.uzykj.core.persistence.DataEntity;

/**
 * @author ghostxbh
 * @date 2020/7/8
 * 文章表
 */
public class BlogNote extends DataEntity<BlogNote> {
    private static final long serialVersionUID = 1L;

    private String code;

    private String title;

    private String origin;

    private String top;

    private String status;

    private Integer readCount;

    private Integer discussCount;

    private Integer likeCount;

    private Integer reprintCount;

    private String labels;

    private String contents;

    private String contentsmd;

    private Integer sort;

    private BlogCategory category;

    private String thumUrl;
    private String advertUrl;
    private String travelTime;
    private String travelDay;
    private String personage;
    private String percapita;
    private String city;

    public BlogNote(String id, String code) {
        super(id);
        this.code = code;
    }

    public BlogNote(String id) {
        super(id);
    }

    public BlogNote() {
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getOrigin() {
        return origin;
    }

    public void setOrigin(String origin) {
        this.origin = origin;
    }

    public String getTop() {
        return top;
    }

    public void setTop(String top) {
        this.top = top;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Integer getReadCount() {
        return readCount != null ? readCount : 0;
    }

    public void setReadCount(Integer readCount) {
        this.readCount = readCount;
    }

    public Integer getDiscussCount() {
        return discussCount != null ? discussCount : 0;
    }

    public void setDiscussCount(Integer discussCount) {
        this.discussCount = discussCount;
    }

    public Integer getLikeCount() {
        return likeCount != null ? likeCount : 0;
    }

    public void setLikeCount(Integer likeCount) {
        this.likeCount = likeCount;
    }

    public Integer getReprintCount() {
        return reprintCount != null ? reprintCount : 0;
    }

    public void setReprintCount(Integer reprintCount) {
        this.reprintCount = reprintCount;
    }

    public String getLabels() {
        return labels;
    }

    public void setLabels(String labels) {
        this.labels = labels;
    }

    public String getContents() {
        return contents;
    }

    public void setContents(String contents) {
        this.contents = contents;
    }

    public String getContentsmd() {
        return contentsmd;
    }

    public void setContentsmd(String contentsmd) {
        this.contentsmd = contentsmd;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public BlogCategory getCategory() {
        return category;
    }

    public void setCategory(BlogCategory category) {
        this.category = category;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getThumUrl() {
        return thumUrl;
    }

    public void setThumUrl(String thumUrl) {
        this.thumUrl = thumUrl;
    }

    public String getAdvertUrl() {
        return advertUrl;
    }

    public void setAdvertUrl(String advertUrl) {
        this.advertUrl = advertUrl;
    }

    public String getTravelTime() {
        return travelTime;
    }

    public void setTravelTime(String travelTime) {
        this.travelTime = travelTime;
    }

    public String getTravelDay() {
        return travelDay;
    }

    public void setTravelDay(String travelDay) {
        this.travelDay = travelDay;
    }

    public String getPersonage() {
        return personage;
    }

    public void setPersonage(String personage) {
        this.personage = personage;
    }

    public String getPercapita() {
        return percapita;
    }

    public void setPercapita(String percapita) {
        this.percapita = percapita;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }
}